package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class CastSpecification implements NonparenthesizedValueExpressionPrimary {

    private int beginIndex;
    private int endIndex;
    private CastOperand castOperand;
    private CastTarget castTarget;

    public CastSpecification(int beginIndex,
                             int endIndex,
                             CastOperand castOperand,
                             CastTarget castTarget) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.castOperand = castOperand;
        this.castTarget = castTarget;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public CastOperand getCastOperand() {
        return castOperand;
    }

    public CastTarget getCastTarget() {
        return castTarget;
    }

}
